package com.wtf.dsp.admin.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * ClassName: SqlVO
 * Description:
 * date: 2023/7/29 18:27
 *
 * @author linhuanyou
 * @version 1.0
 */
@Data
@ToString
@ApiModel("SQL响应类")
public class SqlVO {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Integer id;
    /**
     * sql语句的ID
     */
    @ApiModelProperty(value = "SQL标识")
    private String sqlId;
    /**
     * SQL类型
     */
    @ApiModelProperty(value = "SQL类型")
    private String sqlType;
    /**
     * SQL语句
     */
    @ApiModelProperty(value = "SQL语句")
    private String sqlStatement;
    @ApiModelProperty(value = "SQL的XML")
    private String sqlXml;
    /**
     * SQL语句描述
     */
    @ApiModelProperty(value = "描述")
    private String description;
    /**
     * 所属Mapper的名称空间ID
     */
    @ApiModelProperty(value = "Mapper名称空间")
    private String mns;
    /**
     * 数据源
     */
    @ApiModelProperty(value = "数据源")
    private String ds;
    /**
     * 命名空间
     */
    @ApiModelProperty(value = "命名空间")
    private String ns;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
